package cn.exrick.xboot.modules.base.param;

import cn.exrick.xboot.base.param.BaseParam;
import cn.exrick.xboot.common.constant.CommonConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: njp
 * @Date: 2020/11/05/16:01
 * @Description:
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class PositionParam extends BaseParam {

    /**
     * 主键
     */
    @NotNull(message = "id标识不能为空",groups = {edit.class})
    private String id;
    /**
     * 岗位名称
     */
    @NotNull(message = "岗位标题不能为空",groups = {add.class,edit.class})
    private String title;
    /**
     * 岗位编码
     */
    private String postCode;
    /**
     * 排序值
     */
    private BigDecimal sortOrder;
    /**
     * 是否启用 0启用 -1禁用
     */
    private Integer status = CommonConstant.STATUS_NORMAL;
    /**
     * 组织id
     */
    @NotNull(message = "组织不能为空",groups = {add.class})
    private String orgId;

}
